球将在控制台上移动,我们将使用左右方向键控制挡板。

  • 中,拖出 Set x SpeedSet y Speed
  • 将指令分配给 ball。并将值更改为 2
  • 拖入 Left KeyRight Key 事件。
  • 将事件内部的指令分配给 paddle

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)